<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Stroop_model extends MY_Model
{
    function Stroop_model()
    {
        parent::MY_Model();
    }
	function ww_send_resoure($uid, $from_oasis_orderid, $to_uid, $to_oasis_orderid, $sfood, $swood, $smetal, $spetro, $eachtime, $type)
	{
		$this->exeQuery("CALL ww_send_resoure('$uid', '$from_oasis_orderid', '$to_uid', '$to_oasis_orderid', '$sfood', '$swood', '$smetal', '$spetro', '$eachtime', '$type');");
	}
	function ww_get_field_around_coor($userid, $user_oasis_orderid, $rx, $ry)
	{
		return $this->getRows("CALL ww_get_field_around_coor('$userid', '$user_oasis_orderid', '$rx', '$ry');", 1);
	}
	function ww_get_info_field_coor($rx, $ry, $xx, $yy)
	{
		return $this->getRows("CALL ww_get_info_field_coor('$rx', '$ry', '$xx', '$yy');", 0);
	}
	function ww_send_troop($from_uid, $from_oasis_orderid, $to_uid, $to_oasis_orderid, $type, $eachtime, $u2=0, $u3=0, $u4=0, $u5=0, $u6=0, $u7=0, $u8=0, $u9=0, $u10=0, $u11=0, $u12=0, $u13=0, $u14=0, $u15=0, $u16=0, $u17=0, $u18=0, $u19=0, $u20=0, $u21=0, $u22=0, $u23=0, $u24=0, $u25=0, $u26=0, $u27=0, $u28=0, $u29=0, $u30=0, $u31=0, $u32=0, $u33=0, $u34=0, $u35=0, $u36=0, $u37=0, $u38=0, $u39=0, $u40=0, $u41=0, $u42=0, $u43=0, $u44=0, $u45=0, $u46=0, $u47=0, $u48=0, $u49=0, $u50=0, $u51=0, $u52=0, $u53=0, $u54=0, $u55=0, $u56=0, $u57=0, $u58=0, $u59=0, $u60=0, $u61=0, $u62=0)
	{
		$this->exeQuery("CALL ww_send_troop('$from_uid', '$from_oasis_orderid', '$to_uid', '$to_oasis_orderid', '$type', '$eachtime', '$u2', '$u3', '$u4', '$u5', '$u6', '$u7', '$u8', '$u9', '$u10', '$u11', '$u12', '$u13', '$u14', '$u15', '$u16', '$u17', '$u18', '$u19', '$u20', '$u21', '$u22', '$u23', '$u24', '$u25', '$u26', '$u27', '$u28', '$u29', '$u30', '$u31', '$u32', '$u33', '$u34', '$u35', '$u36', '$u37', '$u38', '$u39', '$u40', '$u41', '$u42', '$u43', '$u44', '$u45', '$u46', '$u47', '$u48', '$u49', '$u50', '$u51', '$u52', '$u53', '$u54', '$u55', '$u56', '$u57', '$u58', '$u59', '$u60', '$u61', '$u62');");
	}
	function ww_get_all_send_stroop_by_user($uid, $oasis_orderid, $type)
	{
		return $this->getRows("CALL ww_get_all_send_stroop_by_user('$uid', '$oasis_orderid', '$type');", 1);
	}
}